package com.itheima.tliasmanagementspringboot.dtos;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

//DTO:专业户:专用于接收前端的提交的参数
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageDto {
    private String name;
    private Integer gender;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate begin;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate end;
    private Integer page = 1;//字段的校验能用非语句判断校验就用非语句校验(if等语句在方法中)
    private Integer pageSize = 10;//其实可以不给,数据量大的时候才有意义

}
